8775d6d227a7094c9a3263b8c0a1d3e7c14afffd,testsuite/smoke/src/test/java/org/jboss/as/test/domain/xml/StandardConfigsXMLParsingMarshallingUnitTestCase.java,StandardConfigsXMLParsingMarshallingUnitTestCase,writeModel,#Element#XMLContentWriter#,194
Before Change
final XMLMapper mapper = XMLMapper.Factory.create();
final StringWriter writer = new StringWriter();
try {
mapper.deparseDocument(new RootElementWriter(element, content), XMLOutputFactory.newInstance().createXMLStreamWriter(writer));
}
catch (XMLStreamException e) {
// Dump some diagnostics
After Change
final XMLMapper mapper = XMLMapper.Factory.create();
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final BufferedOutputStream bos = new BufferedOutputStream(baos);
final XMLStreamWriter xmlWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(bos);
try {
mapper.deparseDocument(new RootElementWriter(element, content), xmlWriter);
xmlWriter.close();